{% extends "base.html" %}

{% block title %}
articles
{% endblock %}

{% block content %}
<div class="container">
    {% for article in articles %}
        <div class="list-group">
            <a href="#" class="list-group-item active">
                <h4 class="list-group-item-heading">
                    <a href="{{ article.get_url_path }}" class="list-group-item active">{{ article.title }}</a>
                </h4>
                <p class="list-group-item-text">作者:
                    <a href="{% url 'article:author_articles' article.user.username %}">{{ article.user.username }}</a>
                </p>
                <p class="list-group-item-text">概要:{{ article.body|slice:'70'|linebreaks }}</p>
            </a>
        </div>
    {% endfor %}

    {% include "paginator.html" %}

</div>
{% endblock %}